package com.easy.merchants.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easy.merchants.pojo.HouseImg;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface HouseImgMapper extends BaseMapper<HouseImg> {
    /**
     * 通过房屋id查找图片是否存在
     *
     * @param houseImg 房子img
     * @return int
     */
    public int selectCounts(HouseImg houseImg);

    /**
     * 通过房屋rid查找图片信息
     *
     * @param houseImg 房子img
     * @return boolean
     */
    public HouseImg selectHouseImg(HouseImg houseImg);

    /**
     * 通过房屋rid修改图片信息
     *
     * @param houseImg 房屋图片信息
     * @return int
     */
    public int updateHouseImg(HouseImg houseImg);
}
